home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / std_unix / archive / text0085.txt < prev    next >
Encoding:
Text File  |  1993-07-06  |  1.1 KB  |  27 lines

  1. Submitted-by: lwv26@cas.org (Larry W. Virden)
  2.  
  3. In <20dgdfINNs6n@rodan.uu.net> Jason Zions <jazz@hal.com> wrote:
  4. >Strictly conforming applications don't try to read() directories
  5. >with the assumption that they're doing something equivalent to readdir(),
  6. >since the standard doesn't say they can; however, a strictly-conforming
  7. >application is allowed to read() a directory for any purpose.
  8.  
  9. So an application needs to do a stat first and determine whether the file
  10. type is one which is permitted to be read() before doing the reading?  Moving
  11. back to the question of the grep -s - is it then permitted for grep to
  12. be silent about the fact that one of the arbitrary character string arguments
  13. is a directory that is being skipped?  Certainly it is permissible for grep
  14. to be silent about the fact that one of said character strings does not exist,
  15. or is not readable.
  16.  
  17. I guess someone will have to write up one of the interpretation requests.
  18.  
  19. -- 
  20. :s 
  21. :s Larry W. Virden                 INET: lvirden@cas.org
  22. :s Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
  23.  
  24.  
  25. Volume-Number: Volume 31, Number 87
  26.  
  27.